package demo.springboot;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "TopicTest1", consumerGroup = "Con_Group_One2")
public class RocketMQListener1 implements RocketMQListener<String> {

    public void onMessage(String message) {
        System.out.println("RocketMQListener1消费消息了:"+message);
    }

}
